//
//  ScorllViewBootcamp.swift
//  swiftUiTest
//
//  Created by Mac on 2023/6/27.
//

import SwiftUI

struct ScorllViewBootcamp_16: View {
    var body: some View {
        VStack {
            ScrollView (.horizontal,showsIndicators: true){
                
                HStack {
                    ForEach(0..<50) { index in
                        Rectangle()
                            .fill(Color.red)
                            .frame(width:300,height: 300)
                            .shadow(radius: 20)
                    }
                }
            }
            ScrollView{
                VStack {
                    ForEach(0..<50) { index in
                        Rectangle()
                            .fill(Color.green)
                            .frame(height: 300)
                            .shadow(radius: 20)
                    }
                  
               
                }
            }
        }
    }
}

struct ScorllViewBootcamp_Previews: PreviewProvider {
    static var previews: some View {
        ScorllViewBootcamp_16()
    }
}
